<%--
Created by IntelliJ IDEA.
User:
Date: 2020/10/4
Time: 0:25
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
  <title>Title</title>
</head>
<body>
<center>
  <h3>书本信息</h3>

  <table border="1" width="600px">
    <tr>
      <td>书本编号</td>
      <td>图片</td>
      <td>书本名字</td>
      <td>书本出版社</td>
      <td>书本作者</td>
      <td>书本价格</td>
      <td>书本操作</td>
    </tr>
    <c:forEach items="${list}" var="a">
      <tr>
        <td>${a.id}</td>
        <td>
          <img src="/uploaded/${fileName}">
        </td>
        <td>${a.name}</td>
        <td>${a.publish}</td>
        <td>${a.auth}</td>
        <td>${a.price}</td>
        <td><a href="${pageContext.request.contextPath}/book/removeById?id=${a.id}">删除</a></td>
        <td><a href="${pageContext.request.contextPath}/book/queryById?id=${a.id}">修改</a></td>

      </tr>
    </c:forEach>
  </table>
  <a href="/addBook.jsp">添加信息</a>
</center>
</body>
</html>